package org.example.seata.bs.api.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单
 *
 * @author hzq
 * @date 2021-03-07 16:39
 */
@Data
@TableName("`order`")
@Accessors(chain = true)
public class Order extends Model<Order> {

    @TableId(type = IdType.AUTO)
    private Integer orderId;
    /**
     * 用户id
     */
    private Integer accountId;
    /**
     * 订单号
     */
    private String orderNum;
    /**
     * 订单金额
     */
    private BigDecimal orderTotalPrice;
    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 订单创建时间
     */
    private LocalDateTime createTime;

    /**
     * 订单取消时间
     */
    private LocalDateTime cancelTime;

    /**
     * 订单支付时间
     */
    private LocalDateTime payTime;
}
